package com.guigusuqi.activiti.service;

import com.guigusuqi.activiti.dto.BPMNFileDTO;
import com.guigusuqi.activiti.dto.TbFlowInsertDTO;
import com.guigusuqi.activiti.entity.TbFlow;
import com.baomidou.mybatisplus.extension.service.IService;
import org.activiti.engine.delegate.DelegateTask;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author suqi
 * @since 2023-06-15
 */
public interface TbFlowService extends IService<TbFlow> {

    void createTaskEvent(DelegateTask delegateTask);

    /**
     * 创建流程
     *
     * @param tbFlowInsertDTO
     */
    void createTbFlow(TbFlowInsertDTO tbFlowInsertDTO);

    /**
     * 删除部署流程
     */
    void deleteAllFlow();

    /**
     * 获取bpmn文件信息
     *
     * @param bpmnFileDTO
     */
    void getBPMNFile(BPMNFileDTO bpmnFileDTO);

    /**
     * 通过部署id删除该部署流程
     * @param flowKey
     */
    void deleteProcessByDeploymentId(String flowKey);
}
